import numpy as np

n = 2
A = np.array([[1,1],[1,1]])

b = np.array([[1],[1]])

Ab = np.hstack((A,b))

def uptriangle(m):
	for i in range(n):
		lst = [map(lambda x: (x[1][i], x[0]),enumerate(m))]
		print lst
	
uptriangle(Ab)
